package com.example.cloudcommon.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_info")
public class IdcUser implements Serializable {

    @TableId(value = "user_id", type = IdType.INPUT)
    private Integer userId;

    private String username;

    private String password;

    private String realname;

    private String mobile;

    private String email;

    private Integer orgId;

    private Integer roleId;

    /**
     * 0：正常，1：锁定
     */
    private Integer isLock;

    /**
     * 用户图标-预留
     */
    private String logo;

    private LocalDateTime lastLogintime;

    private String periodValidity;

    @TableField("AGE")
    private String age;

    @TableField("SEX")
    private String sex;

    @TableField("ADDRESS")
    private String address;

    private String style;

    @TableField("PHONE_CHN")
    private Integer phoneChn;

    private Integer acceptFlag;

    @TableField("LOGIN_FAIL")
    private Integer loginFail;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("MOD_TIME")
    private LocalDateTime modTime;

    @TableField("DEPT_NAME")
    private String deptName;

    @TableField("BUILDING_FACILITIES")
    private String buildingFacilities;

    /**
     * 0:rms 用户  1:nb 用户
     */
    @TableField("user_type")
    private Integer userType;

    @TableField("gss_user_id")
    private Integer gssUserId;



}
